<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------


use think\Route;

//return [
//    '__pattern__' => [
//        'name' => '\w+',
//    ],
//    '[hello]'     => [
//        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
//        ':name' => ['index/hello', ['method' => 'post']],
//    ],
//
//];
//登陆
Route::rule('duan/login','index/user/login');
//注册
Route::rule('duan/regist','index/user/regist');
//修改个人信息
Route::rule('duan/update','index/user/update');
//修改密码
Route::rule('duan/updatePassWord','index/user/updatePassWord');
//增加账单recordDailyBill  同时会更新month表数据
Route::rule('duan/recordDailyBill','index/bill/recordDailyBill');
//查询用户 getUserMessage
Route::rule('duan/getUserMessage','index/user/getUserMessage');
//获取账单月份列表 一级目录
Route::rule('duan/getMonthList','index/bill/getMonthList');
//根据年份获取 一级目录
Route::rule('duan/getYearList','index/bill/getYearList');



//每月个人详细花费  二级目录
Route::rule('duan/getMonthCount','index/bill/getMonthCount');
//获取个人总账单   按照时间顺序
Route::rule('duan/getMyBill','index/bill/getMyBill');
//个人一级目录同步更新接口
Route::rule('duan/updateMonthList','index/bill/updateMonthList');
//意见反馈
Route::rule('duan/feedback','index/user/feedback');
//上传头像
Route::rule('duan/upload','index/user/upload'); 
//修改个人账单信息
Route::rule('bill/update','index/bill/updateBill');
//删除个人账单信息
Route::rule('bill/dele','index/bill/deleBill');
//增加账单分类
Route::rule('type/add','index/bill/addTypeBill');
//删除账单分类
Route::rule('type/dele','index/bill/deleTypeBill');
//修改账单分类
Route::rule('type/update','index/bill/updateTypeBill');
//查找账单分类
Route::rule('type/find','index/bill/findTypeBill');
//专题列表
Route::rule('type/list','index/bill/getTypeCount');